<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <p>爱好：
        <input type="checkbox" checked>睡觉
        <input type="checkbox" checked>吃饭
        <input type="checkbox">打游戏
    </p>
    <script src="/jquery.js"></script>
    <script>
        //默认选中的复选框
        console.log($('input:checked'));

        //没有设置默认选中的复选框
        console.log($('input:not(:checked)'));
    </script>
</body>
</html>